package com.mall.common.model.goods;

import java.util.List;

import com.jfinal.ext.plugin.tablebind.TableBind;
import com.mall.common.model.BaseModel;

/**
 * 商品属性表
 * @author zengjintao
 * @version 1.0
 * @createTime 2018年7月28日下午4:03:53
 */
@TableBind(tableName="goods_property")
public class GoodsProperty extends BaseModel<GoodsProperty>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final GoodsProperty dao = new GoodsProperty();
	
	/**
	 * 获取属性值列表
	 * @return
	 */
	public List<GoodsPropertyValue> getGoodsPropertyValue(){
		return GoodsPropertyValue.dao.find("select * from goods_property_value where goods_property_id = ?",getInt("id"));
	}

}
